﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BOHVote.Common;
using BOHVote.Entity;
 

namespace BOH.ControlPanel
{
    public partial class controlPanel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Title = common.getAppSetting("AppName");
            ((HiddenField)this.Master.FindControl("hiddenPageName")).Value = "CP";
            if (Session["user"] != null)
            {
                BHUser bu = (BHUser)Session["user"];
                if (bu.UserType == "N")
                {
                    AModifyPassword.Visible = false;
                    APersonalRegiser.Visible = true;
                    frameControl.Attributes["src"] = "PersonalRegister.aspx";
                }
                else
                {
                    AModifyPassword.Visible = true;
                    APersonalRegiser.Visible = false;
                    frameControl.Attributes["src"] = "OverView.aspx";
                }
            }
        }
    }
}
